xenconsoled: portability fixes:
authorKeir Fraser <keir@xensource.com>
Mon, 8 Oct 2007 09:55:50 +0000 (10:55 +0100)
committerKeir Fraser <keir@xensource.com>
Mon, 8 Oct 2007 09:55:50 +0000 (10:55 +0100)
commitb2ac1c4e5053c53e128e74bd0de178e1857a0d5d
tree1d027bc4bd8915c7ddcf3e5f5038b533d964b2a4
parentf94f6e258de82f13747c7b00e2569c12b96c7011
xenconsoled: portability fixes:
 - Use openpty(), which does the same as the sequence
   of open(), grantpt(), unlockpt(), ptsname(), tcgetattr()
   simplifies code
 - Check return code from tcsetattr()
 - sprintf() -> snprintf()
 - OpenBSD lacks POSIX grantpt() and unlockpt()
   requires use of openpty()
 - Solaris lacks POSIX openpty() via feedback from SUN (John Levon)
   implement openpty() for Solaris, tested and ok'd by SUN (John
   Levon)

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
config/StdGNU.mk
config/SunOS.mk
tools/console/Makefile
tools/console/daemon/io.c
tools/console/daemon/utils.c